home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.2 Development Libraries
/
SGI IRIX 6.2 Development Libraries.iso
/
dist
/
gl_dev.idb
/
usr
/
share
/
src
/
OpenGL
/
tools
/
toogl
/
search.h.z
/
search.h
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-03-15
|
265 b
|
21 lines
const NALPH = 128;
const MAXPATTERN = 32;
class Search {
public:
Search() ;
~Search() {} ;
void add(const char *s) ;
void print_table() ;
int check(const char *s) ;
private:
unsigned int table[NALPH];
unsigned int cstate;
unsigned int lim;
};